package net.oschina.allchat.server.framework.pipe.routing.internal;

import net.oschina.allchat.server.framework.core.IService;
import net.oschina.allchat.server.framework.core.annotations.Component;
import net.oschina.allchat.server.framework.core.annotations.Dependency;
import net.oschina.allchat.server.framework.core.integration.IMessageReceiver;

@Component("routing.service")
public class RoutingService implements IService {
	@Dependency("processing.message.receiver")
	private IMessageReceiver processingMessageReceiver;
	
	@Override
	public void start() throws Exception {
		// TODO Auto-generated method stub
		processingMessageReceiver.start();
	}

	@Override
	public void stop() throws Exception {
		// TODO Auto-generated method stub
		processingMessageReceiver.stop();
	}

}
